package com.by.core.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @author Hzy
 * @version 1.0
 * @date 2025/4/10  11:44
 * @description
 * @since jdk11
 */
public class DateUtils {
    public  static  String getSysytemTimeYM(){
        LocalDate localDate = LocalDate.now();
        //格式化
        DateTimeFormatter formatter =DateTimeFormatter.ofPattern("yMM");
        String tmp = localDate.format(formatter);
        tmp = tmp.substring(2);
        return tmp;
    }
}
